<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>供应商</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/forms/currencyCss.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .qbdms-TBinformation{margin-left: 0px;}
        .qbdms-TBinformationText{margin-left: 145px;}
    </style>
</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="qbdms-backDiv">
        <div class="layui-table-view-body" style="padding: 0 24px 24px;">
            <div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">供应商维护 <i class="qbdms-returnOn closeWindow">返回</i></div>
            <form class="layui-form treeFormPreview"  requrl="${ctx}/qbdms/wQbdSupplier/get" lay-filter="wQbdSupplierDataForm">
                <div class="" style="width: 100%;overflow-x: auto">
                    <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr id="tbxx"></tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">供应商名称<span style="color: red;">*</span></td>
                            <td colspan="5" name="suppliername"></td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">供应商代号<span style="color: red;">*</span></td>
                            <td colspan="5" name="suppliercode"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <#if isClose != 'true'>
                    <div class="layui-form-item btnformItem">
                        <p>
                            <button type="reset" id="closeWindow" class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回</button>
                        </p>
                    </div>
                </#if>
                <!--<div class="layui-row">
                    <div id="tbxx"></div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label"  title="供应商名称">供应商名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="suppliername"  placeholder="请输入" lay-verify="required" lay-reqtext="供应商名称是必填项"
                                   autocomplete="off" class="layui-input  textInput"
                                   maxlength="50" fieldname="suppliername" disabled="disabled">
                        </div>
                    </div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label"  title="供应商代号">供应商代号<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="suppliercode"  placeholder="请输入" lay-verify="required" lay-reqtext="供应商代号是必填项"
                                   autocomplete="off" class="layui-input  textInput"
                                   maxlength="50" fieldname="suppliercode" disabled="disabled">
                        </div>
                    </div>
                </div>
                <div class="layui-hide">
                    <input type="text" name="id" placeholder="请输入"
                           autocomplete="off" class="layui-input " maxlength="50" fieldname="id">
                </div>-->

            </form>
        </div>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','common','jquery','publicMethods'], function () {
        var $ = layui.jquery;
        var common = layui.common;
        var publicMethods=layui.publicMethods;
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdSupplier/view/list';
        });

        var runId = "${runId}";
        if(runId == null || runId == ''){
            $("#hideAndShow").show();
        }

        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name:'wQbdSupplierDataForm',
            idValue:"${id}",
            primary:"id",
            getCallback: function (data) {
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</td>");
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
            }
        });

        publicMethods.bottomFixd()
        $("body *").not("#closeWindow").attr("disabled", "disabled");

    });
</script>
</body>
</html>